﻿	<UserControl x:Class="PrintToPDF.MainPage"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	d:DesignHeight="500" d:DesignWidth="600">
	<Grid x:Name="LayoutRoot" Background="White">
		<Grid.RowDefinitions>
			<RowDefinition Height="*"></RowDefinition>
			<RowDefinition Height="25"></RowDefinition>
		</Grid.RowDefinitions>
		<Grid x:Name="grdContent" Grid.Row="0">
			<Rectangle x:Name="recBlue" Height="50" Width="200" Fill="Blue" Margin="10" HorizontalAlignment="Left" VerticalAlignment="Top"  ></Rectangle>
			<Rectangle x:Name="recRed" Height="50" Width="200" Fill="Red" ></Rectangle>			
			<Rectangle x:Name="recYellow" Height="50" Width="200" Fill="Yellow" Margin="10" HorizontalAlignment="Right" VerticalAlignment="Bottom"  ></Rectangle>
		</Grid>
		<Button x:Name="btnPrint" Content="Print to PDF" Grid.Row="1" Click="btnPrint_Click"></Button>
	</Grid>
</UserControl>
